package com.juzipi.inter.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.juzipi.inter.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author juzipi
 * @Date 2021/4/14 15:50
 * @Info 学生分数计算表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "student_paper_score")
public class StudentPaperScore extends BaseEntity {


    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    //学生id
    private Long studentId;

    //试卷id
    private Long paperId;

    //分数
    private Double score;

    //正确率
    private Double correct;

    //用时
    @JsonFormat(pattern = "HH:mm:ss")
    private Date timeCost;

}
